<?php
return [
    'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
    'components' => [
        'cache' => [
            'class' => 'yii\caching\FileCache',
//            'class' => 'yii\redis\Cache',
            'keyPrefix'=>'muxin'
        ],
//        'redis' => [
//            'class' => 'yii\redis\Connection',
//            'hostname' => 'localhost',
//            'port' => 6379,
//            'database' => 0,
//            'password'  => 'rds423fsadD',
//        ],
        'wechat' => [
            'class' => 'maxwen\easywechat\Wechat',      //微信扩展
        ],
        'mailer' => [
            'class' => 'yii\swiftmailer\Mailer',
            'viewPath' => '@common/mail',
            'transport' => [
                'class' => 'Swift_SmtpTransport',
                'host' => 'smtp.qq.com',
                'username' => '506712096@qq.com',
                'password' => 'fngfsaufktdicaab',
                'port' => 465,
                'encryption' => 'ssl',
            ],
        ],
//        'db' => [
//            'class' => 'yii\db\Connection',
//            'dsn' => 'mysql:host=47.94.144.66;port=3306;dbname=muxin',
//            'username' => 'zaizai',
//            'password' => '000000',
//            'enableSchemaCache' => true,
//            // Duration of schema cache.
//            'schemaCacheDuration' => 3600,
//            // Name of the cache component used to store schema information
//            'schemaCache' => 'cache',
//        ],
    ],
];






